﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DEMO.Y2015CS58.LIB
{
    public class LoginControllers
    {
        string _userName;

        public string UserName
        {
            get { return _userName; }
            set { _userName = value; }
        }
        string _passWord;

        public string PassWord
        {
            get { return _passWord; }
            set { _passWord = value; }
        }

        public LoginControllers()
        {

        }

        public LoginControllers(string userName, string passWord)
        {
            this._userName = userName;
            this._passWord = passWord;
        }

        public bool CheckUserInfo()
        {
            bool ketqua = false;

            if (_userName.Equals("doannv") && _passWord.Equals("imic.edu.vn"))
            {
                ketqua= true;
            }
            else
            {
                ketqua= false;
            }

            return ketqua;
        }
    }
}
